package com.kaifamiao.www.demo.Do21;

public class De04 {
    public static void main(String[] args) {
        //删除下标
        int[] arr = {1,11,12,21,22,23,32,33};
        int index = 3;
        int[] newarr = new int[arr.length - 1];
        for(int i = 0,j = 0;i < arr.length;i++){
            if(i == index){
                continue;
            }
            newarr[j++] = arr[i];
        }
        for(int i = 0;i < newarr.length;i++){
            System.out.println(newarr[i]);
        }
    }
}
